﻿using System.ComponentModel.DataAnnotations;

namespace BCDto.OA.PunchEdits
{
    /// <summary>
    /// 修改打卡信息模型
    /// </summary>
    public class PunchEditsSimPutDto
    {
        /// <summary>
        /// 外勤
        /// </summary>
        [Display(Name = "外勤")]
        [Required(ErrorMessage = "{0} 不能为空。")]
        public bool OutsideWork { get; set; }
        /// <summary>
        /// 外勤坐标
        /// </summary>
        [Display(Name = "外勤坐标")]
        [MaxLength(50, ErrorMessage = "{0} 最多50个字符")]
        public string OutsideWorkCoordinate { get; set; }

        /// <summary>
        /// 外勤东经
        /// </summary>
        [Display(Name = "外勤东经")]
        public double? Longitude { get; set; }

        /// <summary>
        /// 外勤北纬
        /// </summary>
        [Display(Name = "外勤北纬")]
        public double? Latitude { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [Display(Name = "备注")]
        [MaxLength(500, ErrorMessage = "{0} 最多500个字符")]
        public string Remark { get; set; }
    }
}
